package com.sinosoft.emplmis.application.web.dto;

import com.sinosoft.framework.core.common.utils.ObjectUtil;
import com.sinosoft.framework.dict.domain.DictInfoEntity;

/**
 * 字典概要信息数据传输对象
 * 
 * @author Sun
 * 
 */
public class DictInfoData implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;

	private String tableName;

	private String dictName;

	private String py;

	private String bak;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDictName() {
		return dictName;
	}

	public void setDictName(String dictName) {
		this.dictName = dictName;
	}

	public String getPy() {
		return py;
	}

	public void setPy(String py) {
		this.py = py;
	}

	public String getBak() {
		return bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

	/**
	 * 数据转换
	 * 
	 * @param dictInfoData
	 * @param dictInfoEntity
	 */
	public void toDictInfoData(DictInfoData dictInfoData,
			DictInfoEntity dictInfoEntity) {
		try {
			ObjectUtil.oldToNew(dictInfoData, dictInfoEntity,
					"serialVersionUID");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
